﻿using System;
using System.ComponentModel;

namespace Ymatou.User.Dto
{
    /// <summary>
    /// 用户登录凭据验证 code
    /// </summary>
    public enum UserLoginBillsVerifyCode
    {
        /// <summary>
        /// 邮箱格式错误
        /// </summary>
        EmailFormartError = 0,
        /// <summary>
        /// 邮箱地址已存在
        /// </summary>
        EmailAlreadyExists = 1,
        /// <summary>
        /// 手机号码格式错误
        /// </summary>
        MobileFormartError = 2,
        /// <summary>
        /// 手机号码已存在
        /// </summary>
        MobileAlreadyExists = 3,
        /// <summary>
        /// 登录密码为空
        /// </summary>
        LoginPasswordEmpty = 4,
        /// <summary>
        /// 登录密码长度小于6
        /// </summary>
        LoginPasswordLenthLt6 = 5,
        /// <summary>
        /// 登录名称（昵称）为空
        /// </summary>
        LoginNameEmpty = 6,
        /// <summary>
        /// 两次输入密码不匹配
        /// </summary>
        LoginPasswordNotMatch = 7,
        /// <summary>
        /// 登录名称（昵称）内容错误（只能使用中、英文、数字和下划线）
        /// </summary>
        LoginNameContextError = 8,
        /// <summary>
        ///登录名称（昵称）首末位错误（昵称首位和末位不能是下划线'_'） 
        /// </summary>
        LoginNameFistLastError = 9,
        /// <summary>
        /// 登录昵称全数字错误
        /// </summary>
        LoginNameFullNumberError = 10,
        /// <summary>
        /// 登录昵称已存在
        /// </summary>
        LoginNameAleradExists = 11,
        /// <summary>
        /// 登录昵称内容中存在特殊的不合法的字符（昵称中带有非法字符）
        /// </summary>
        LoginNameContainErrorCode = 12,
        /// <summary>
        /// 用户ID错误
        /// </summary>
        UserIdError = 13,
        /// <summary>
        /// 合法的注册信息
        /// </summary>
        Success = 14,
        /// <summary>
        /// 验证码无效
        /// </summary>
        VerifyCodeInvalid = 15,
        /// <summary>
        /// 没有同意注册协议
        /// </summary>
        DisagreeContract = 16,
        /// <summary>
        /// 昵称长度4~100位
        /// </summary>
        LoginNameLengthError = 17,
        /// <summary>
        /// 邮箱为空
        /// </summary>
        EmailNullError = 18,
        /// <summary>
        /// 登录邮箱，手机都为空
        /// </summary>
        MailAndMobileIsNull = 19,
        /// <summary>
        /// DTO为空
        /// </summary>
        DtoNullError = 20,
        /// <summary>
        /// 用户不存在
        /// </summary>
        UserNotFind = 21,
        /// <summary>
        /// 邮箱未验证
        /// </summary>
        MailNotVerify = 22
    }
    /// <summary>
    /// 重置密码返回
    /// </summary>
    public enum ResetPasswordReponseCode
    {
        /// <summary>
        /// 手机号码未找到
        /// </summary>
        [Description("手机号码未找到")]
        MobileNofFind = 0,
        /// <summary>
        /// 成功
        /// </summary>
        [Description("成功")]
        Success = 1,
        /// <summary>
        /// dto数据错误
        /// </summary>
        [Description("错误的dto数据结构")]
        DtoError = 2,
        /// <summary>
        /// 用户未找到
        /// </summary>
        [Description("用户未找到")]
        UserNotFind = 3,
        /// <summary>
        /// 原密码错误
        /// </summary>
        [Description("原密码不匹配")]
        OldPasswordError = 4,
        /// <summary>
        /// 登录密码为空
        /// </summary>
        [Description("新密码不能为空")]
        NewPasswordEmpty = 5,
        /// <summary>
        /// 登录密码长度小于6
        /// </summary>
        [Description("密码长度不能小于6")]
        NewPasswordLenthLt6 = 6,
        [Description("登录密码与交易密码相同")]
        LoginPasEqualTradingPas=7 ,
        [Description("交易密码与登录密码相同")]
        TradingPasEqualLoginPas = 8
    }
    /// <summary>
    /// 密码操作类型
    /// </summary>
    public enum PasswordActionType
    {
        /// <summary>
        /// 其他
        /// </summary>
        Other = 0,
        /// <summary>
        /// 修改登录密码
        /// </summary>
        ModifyLoginPassword = 1,
        /// <summary>
        /// 修改交易密码
        /// </summary>
        ModifyTradingPassword = 2
    }
    /// <summary>
    /// 操作类型
    /// </summary>
    public enum ActionType
    {
        /// <summary>
        /// 未知的操作类型
        /// </summary>
        Other = 0,
        /// <summary>
        /// 根据用户Id
        /// </summary>
        ByUserId = 1,
        /// <summary>
        /// 根据登录手机
        /// </summary>
        ByMobile = 2,
        /// <summary>
        /// 根据登录邮箱
        /// </summary>
        ByMail = 3
    }
    /// <summary>
    /// 发放邮箱，手机消息结果
    /// </summary>
    public enum SendMessageReponseCode
    {
        /// <summary>
        /// 邮箱不存在
        /// </summary>
        MailNotFind = 0,
        /// <summary>
        /// 手机不存在
        /// </summary>
        MobileNofFind = 1,
        /// <summary>
        /// 接收邮箱格式错误
        /// </summary>
        MailFormartError = 2,
        /// <summary>
        /// 接收手机号码格式错误
        /// </summary>
        MobileFormartError = 3,
        /// <summary>
        /// 成功
        /// </summary>
        Success = 0
    }
    /// <summary>
    /// 用户凭据操作类型
    /// </summary>
    public enum BillsActionType
    {
        /// <summary>
        /// 未知操作
        /// </summary>
        Other = 0,
        /// <summary>
        /// 码头账号绑定登录手机
        /// </summary>
        BindMobile = 1,
        /// <summary>
        /// 第三方账号绑定登录凭据
        /// </summary>
        ThirdPartyBindNewBills = 2,
        /// <summary>
        /// 收货地址邮箱绑定到登录邮箱 
        /// </summary>
        BindToLoginMail = 3,
        /// <summary>
        /// 绑定登录邮箱
        /// </summary>
        BindLoginMail = 4,
        /// <summary>
        /// 修改登录邮箱
        /// </summary>
        ModifyLoginMail = 5,
        /// <summary>
        /// 修改登录手机
        /// </summary>
        ModifyLoginMobile = 6,
        /// <summary>
        /// 激活邮箱
        /// </summary>
        ActivateEmail = 7,
        /// <summary>
        /// 检查是否要通知用户去认证邮箱
        /// </summary>
        CheckIsActivateEmail = 8,

    }
    /// <summary>
    /// 消息业务类型
    /// </summary>
    public enum MessageType
    {
        /// <summary>
        /// 未知操作
        /// </summary>
        Other = 0,
        /// <summary>
        /// 码头账号绑定手机登录凭据
        /// </summary>
        BindMobile = 1,
        /// <summary>
        /// 第三方账号绑定手机登录凭据
        /// </summary>
        ThirdPartyBindMobile = 2,
        /// <summary>
        /// 重置登录密码
        /// </summary>
        ResetloginPassword = 3,
        /// <summary>
        /// 重置交易密码
        /// </summary>
        ResetTradingPassword = 4
    }
    /// <summary>
    /// 发送消息类型
    /// </summary>
    public enum SendToType
    {
        /// <summary>
        /// 未知类型
        /// </summary>
        Other = 0,
        /// <summary>
        /// 到邮箱
        /// </summary>
        Mail = 1,
        /// <summary>
        /// 到手机
        /// </summary>
        Mobile = 2
    }
}
